.class public Lcom/TwinBlade/PicturePassword/aw;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Lcom/paypal/android/MEP/n;
.implements Ljava/io/Serializable;


# static fields
.field private static transient a:Landroid/content/Context;

.field private static transient b:Ljava/lang/String;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 19
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 20
    sput-object p2, Lcom/TwinBlade/PicturePassword/aw;->b:Ljava/lang/String;

    .line 21
    sput-object p1, Lcom/TwinBlade/PicturePassword/aw;->a:Landroid/content/Context;

    .line 22
    return-void
.end method

.method static synthetic a()Landroid/content/Context;
    .locals 1

    .prologue
    .line 16
    sget-object v0, Lcom/TwinBlade/PicturePassword/aw;->a:Landroid/content/Context;

    return-object v0
.end method

.method private b()V
    .locals 2

    .prologue
    .line 52
    sget-object v0, Lcom/TwinBlade/PicturePassword/aw;->a:Landroid/content/Context;

    check-cast v0, Lcom/TwinBlade/PicturePassword/PayPalKey;

    new-instance v1, Lcom/TwinBlade/PicturePassword/ay;

    invoke-direct {v1, p0}, Lcom/TwinBlade/PicturePassword/ay;-><init>(Lcom/TwinBlade/PicturePassword/aw;)V

    invoke-virtual {v0, v1}, Lcom/TwinBlade/PicturePassword/PayPalKey;->runOnUiThread(Ljava/lang/Runnable;)V

    .line 58
    return-void
.end method

.method private b(Ljava/lang/String;)V
    .locals 2
    .parameter

    .prologue
    .line 43
    sget-object v0, Lcom/TwinBlade/PicturePassword/aw;->a:Landroid/content/Context;

    check-cast v0, Lcom/TwinBlade/PicturePassword/PayPalKey;

    new-instance v1, Lcom/TwinBlade/PicturePassword/ax;

    invoke-direct {v1, p0, p1}, Lcom/TwinBlade/PicturePassword/ax;-><init>(Lcom/TwinBlade/PicturePassword/aw;Ljava/lang/String;)V

    invoke-virtual {v0, v1}, Lcom/TwinBlade/PicturePassword/PayPalKey;->runOnUiThread(Ljava/lang/Runnable;)V

    .line 49
    return-void
.end method


# virtual methods
.method public a(Ljava/lang/String;)V
    .locals 2
    .parameter

    .prologue
    .line 26
    sget-object v0, Lcom/TwinBlade/PicturePassword/aw;->a:Landroid/content/Context;

    const v1, 0x7f0900cd

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/TwinBlade/PicturePassword/aw;->b(Ljava/lang/String;)V

    .line 27
    return-void
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;)V
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 36
    sget-object v0, Lcom/TwinBlade/PicturePassword/aw;->a:Landroid/content/Context;

    invoke-static {v0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    .line 37
    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v1, "PayPalKey"

    sget-object v2, Lcom/TwinBlade/PicturePassword/aw;->b:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v2

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 38
    sget-object v0, Lcom/TwinBlade/PicturePassword/aw;->a:Landroid/content/Context;

    const v1, 0x7f0900cf

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/TwinBlade/PicturePassword/aw;->b(Ljava/lang/String;)V

    .line 39
    invoke-direct {p0}, Lcom/TwinBlade/PicturePassword/aw;->b()V

    .line 40
    return-void
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 3
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 31
    new-instance v0, Ljava/lang/StringBuilder;

    sget-object v1, Lcom/TwinBlade/PicturePassword/aw;->a:Landroid/content/Context;

    const v2, 0x7f0900ce

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, p5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/TwinBlade/PicturePassword/aw;->b(Ljava/lang/String;)V

    .line 32
    return-void
.end method
